package com.aptech.yuanhuabao.ui.start.contract;

import com.aptech.yuanhuabao.api.soap.result.LoginResult;
import com.jaydenxiao.common.base.BaseModel;
import com.jaydenxiao.common.base.BasePresenter;
import com.jaydenxiao.common.base.BaseView;

import rx.Observable;

/**
 * des:
 * Created by zhh_li
 * on 2017/1/5.
 */

public class LoginContract {
    public interface Model extends BaseModel {
       // Observable< List<NewsChannelTable> > lodeMineNewsChannels();

        Observable<LoginResult> checkLogin(String phone, String sign);
    }

    public interface View extends BaseView {
        //void returnMineNewsChannels(List<NewsChannelTable> newsChannelsMine);
        void getLoginResult(String result, boolean isSuccess);

    }
    // 请求
    public abstract static class Presenter extends BasePresenter<View, Model> {
        //public abstract void lodeMineChannelsRequest();
        public abstract void loginCenter(String account, String pwd);
    }
}
